/*    */ package client.inventory;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public enum PetFlag
/*    */ {
/* 12 */   PET_PICKUP_ITEM(1, 5190000, 5191000),
/* 13 */   PET_LONG_RANGE(2, 5190002, 5191002),
/* 14 */   PET_DROP_SWEEP(4, 5190003, 5191003),
/* 15 */   PET_IGNORE_PICKUP(8, 5190005, -1),
/* 16 */   PET_PICKUP_ALL(16, 5190004, 5191004),
/* 17 */   PET_CONSUME_HP(32, 5190001, 5191001),
/* 18 */   PET_CONSUME_MP(64, 5190006, -1),
/* 19 */   PET_RECALL(128, 5190007, -1),
/* 20 */   PET_AUTO_SPEAKING(256, 5190008, -1),
/* 21 */   PET_AUTO_BUFF(512, 5190010, -1),
/* 22 */   PET_SMART(2048, 5190011, -1);
/*    */   private final int i;
/*    */   private final int item;
/*    */   private final int remove;
/*    */   
/*    */   PetFlag(int i, int item, int remove) {
/* 28 */     this.i = i;
/* 29 */     this.item = item;
/* 30 */     this.remove = remove;
/*    */   }
/*    */   
/*    */   public static PetFlag getByAddId(int itemId) {
/* 34 */     for (PetFlag flag : values()) {
/* 35 */       if (flag.item == itemId) {
/* 36 */         return flag;
/*    */       }
/*    */     } 
/* 39 */     return null;
/*    */   }
/*    */   
/*    */   public static PetFlag getByDelId(int itemId) {
/* 43 */     for (PetFlag flag : values()) {
/* 44 */       if (flag.remove == itemId) {
/* 45 */         return flag;
/*    */       }
/*    */     } 
/* 48 */     return null;
/*    */   }
/*    */   
/*    */   public int getValue() {
/* 52 */     return this.i;
/*    */   }
/*    */   
/*    */   public boolean check(int flag) {
/* 56 */     return ((flag & this.i) == this.i);
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\client\inventory\PetFlag.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */